﻿@model Project.Models.WarehouseItems

@{
    ViewBag.Title = "Kivét";
}

<h2>Kivét komissióra</h2>


@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>Raktár</h4>
        <hr />
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        @Html.HiddenFor(model => model.WarehouseItem_Id)

        <div class="form-group">
            @Html.LabelFor(model => model.Item_Id,"Cikk", htmlAttributes: new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.DropDownList("Item_Id", null, htmlAttributes: new { @class = "form-control", @readonly = true, @disabled = true })
                @Html.ValidationMessageFor(model => model.Item_Id, "", new { @class = "text-danger" })
            </div>
        </div>
        <div class="form-group">
            @Html.LabelFor(model => model.ReserveStock_Id,"Komissió tér", htmlAttributes: new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.DropDownList("ReserveStock_Id", null, htmlAttributes: new { @class = "form-control" })
                @Html.ValidationMessageFor(model => model.ReserveStock_Id, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.UserDelete, "Felhasználó", htmlAttributes: new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.UserDelete, new { htmlAttributes = new { @class = "form-control", @Value = User.Identity.Name } })
                @Html.ValidationMessageFor(model => model.UserDelete, "", new { @class = "text-danger" })
            </div>
        </div>


        <div class="form-group">
            @Html.LabelFor(model => model.DateDelete, "Dátum" ,htmlAttributes: new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.DateDelete, new { htmlAttributes = new { @class = "form-control", @Value = DateTime.Now.ToString("yyyy.MM.dd. HH:mm:ss") } })
                @Html.ValidationMessageFor(model => model.DateDelete, "", new { @class = "text-danger" })
            </div>
        </div>



        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Kész" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Vissza", "ReserveStock")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
